package com.sinoglobal.dumping.dumplingspring;

import com.sinoglobal.dumping.fragment.Dumpling_HomeFragment;

/**
 * Created by KeZhuang on 2016/1/26.
 */
public class DumplingLayoutFactory {
    private DumplingNormalLayout mNormalLayout;
    private DumplingSpringLayout mSpringLayout;
    public AbsDumplingLayout getLayout(Dumpling_HomeFragment fragment,boolean isChangeUI){
//        if(!isChangeUI){
//            if(mNormalLayout==null){
//                mNormalLayout = new DumplingNormalLayout(fragment);
//            }
//            return mNormalLayout;
//        }else{
            if(mSpringLayout==null){
                mSpringLayout = new DumplingSpringLayout(fragment);
            }
            return mSpringLayout;
//        }
    }
}
